package com.ruoyi.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.system.domain.BdmBindingChange;
import com.ruoyi.system.domain.dto.BdmBindingChangeDto;
import com.ruoyi.system.domain.vo.BdmBindingChangeVo;
import com.ruoyi.system.mapper.BdmBindingChangeMapper;
import com.ruoyi.system.service.IBdmBindingChangeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 用户绑定关系变动Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-27
 */
@Service
public class BdmBindingChangeServiceImpl extends ServiceImpl<BdmBindingChangeMapper,BdmBindingChange> implements IBdmBindingChangeService
{
    @Autowired
    private BdmBindingChangeMapper bdmBindingChangeMapper;

    /**
     * 查询用户绑定关系变动
     * 
     * @param id 用户绑定关系变动主键
     * @return 用户绑定关系变动
     */
    @Override
    public BdmBindingChange selectBdmBindingChangeById(Long id)
    {
        return bdmBindingChangeMapper.selectBdmBindingChangeById(id);
    }

    /**
     * 查询用户绑定关系变动列表
     * 
     * @param bdmBindingChange 用户绑定关系变动
     * @return 用户绑定关系变动
     */
    @Override
    public List<BdmBindingChange> selectBdmBindingChangeList(BdmBindingChange bdmBindingChange)
    {
        return bdmBindingChangeMapper.selectBdmBindingChangeList(bdmBindingChange);
    }

    /**
     * 新增用户绑定关系变动
     * 
     * @param bdmBindingChange 用户绑定关系变动
     * @return 结果
     */
    @Override
    public int insertBdmBindingChange(BdmBindingChange bdmBindingChange)
    {
        bdmBindingChange.setCreateTime(DateUtils.getNowDate());
        return bdmBindingChangeMapper.insertBdmBindingChange(bdmBindingChange);
    }

    /**
     * 修改用户绑定关系变动
     * 
     * @param bdmBindingChange 用户绑定关系变动
     * @return 结果
     */
    @Override
    public int updateBdmBindingChange(BdmBindingChange bdmBindingChange)
    {
        bdmBindingChange.setUpdateTime(DateUtils.getNowDate());
        return bdmBindingChangeMapper.updateBdmBindingChange(bdmBindingChange);
    }

    /**
     * 批量删除用户绑定关系变动
     * 
     * @param ids 需要删除的用户绑定关系变动主键
     * @return 结果
     */
    @Override
    public int deleteBdmBindingChangeByIds(Long[] ids)
    {
        return bdmBindingChangeMapper.deleteBdmBindingChangeByIds(ids);
    }

    /**
     * 删除用户绑定关系变动信息
     * 
     * @param id 用户绑定关系变动主键
     * @return 结果
     */
    @Override
    public int deleteBdmBindingChangeById(Long id)
    {
        return bdmBindingChangeMapper.deleteBdmBindingChangeById(id);
    }

    @Override
    public List<BdmBindingChangeVo> listVo(BdmBindingChangeDto bdmBindingChange) {
        return bdmBindingChangeMapper.listVo(bdmBindingChange);
    }

    @Override
    public List<BdmBindingChangeVo> listPage(BdmBindingChangeDto bdmBindingChange) {
        return bdmBindingChangeMapper.listPage(bdmBindingChange);
    }
}
